<template>
  <div>pinia跨组件演示</div>
  <div>计数器: {{ count }}</div>
</template>

<script setup lang="ts">
import { useCounterStore } from '@/stores/counter'
import { storeToRefs } from 'pinia'

const { count } = storeToRefs(useCounterStore())
</script>

<style scoped></style>
